class CreateContents < ActiveRecord::Migration
  def self.up
    create_table :contents do |t|
      t.primary_key :id
      t.string :name
      t.string :title
      t.string :type
      t.integer :p_id
      t.text :content
      t.string :img_url
      t.string :channel
      t.timestamps :create_time
      t.timestamps :update_time
    end
  end

  def self.down
    drop_table :contents
  end
end
